﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006EB RID: 1771
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetFriendChallengeDetailScRsp : IMessage<GetFriendChallengeDetailScRsp>, IMessage, IEquatable<GetFriendChallengeDetailScRsp>, IDeepCloneable<GetFriendChallengeDetailScRsp>, IBufferMessage
	{
		// Token: 0x170016BF RID: 5823
		// (get) Token: 0x06004FC2 RID: 20418 RVA: 0x000D94D7 File Offset: 0x000D76D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetFriendChallengeDetailScRsp> Parser
		{
			get
			{
				return GetFriendChallengeDetailScRsp._parser;
			}
		}

		// Token: 0x170016C0 RID: 5824
		// (get) Token: 0x06004FC3 RID: 20419 RVA: 0x000D94DE File Offset: 0x000D76DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetFriendChallengeDetailScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170016C1 RID: 5825
		// (get) Token: 0x06004FC4 RID: 20420 RVA: 0x000D94F0 File Offset: 0x000D76F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetFriendChallengeDetailScRsp.Descriptor;
			}
		}

		// Token: 0x06004FC5 RID: 20421 RVA: 0x000D94F7 File Offset: 0x000D76F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendChallengeDetailScRsp()
		{
		}

		// Token: 0x06004FC6 RID: 20422 RVA: 0x000D950C File Offset: 0x000D770C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendChallengeDetailScRsp(GetFriendChallengeDetailScRsp other) : this()
		{
			this.gAIMPKMPKAL_ = other.gAIMPKMPKAL_.Clone();
			this.challengeId_ = other.challengeId_;
			this.retcode_ = other.retcode_;
			this.uid_ = other.uid_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004FC7 RID: 20423 RVA: 0x000D9565 File Offset: 0x000D7765
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendChallengeDetailScRsp Clone()
		{
			return new GetFriendChallengeDetailScRsp(this);
		}

		// Token: 0x170016C2 RID: 5826
		// (get) Token: 0x06004FC8 RID: 20424 RVA: 0x000D956D File Offset: 0x000D776D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<DisplayAvatarDetailInfo> GAIMPKMPKAL
		{
			get
			{
				return this.gAIMPKMPKAL_;
			}
		}

		// Token: 0x170016C3 RID: 5827
		// (get) Token: 0x06004FC9 RID: 20425 RVA: 0x000D9575 File Offset: 0x000D7775
		// (set) Token: 0x06004FCA RID: 20426 RVA: 0x000D957D File Offset: 0x000D777D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x170016C4 RID: 5828
		// (get) Token: 0x06004FCB RID: 20427 RVA: 0x000D9586 File Offset: 0x000D7786
		// (set) Token: 0x06004FCC RID: 20428 RVA: 0x000D958E File Offset: 0x000D778E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170016C5 RID: 5829
		// (get) Token: 0x06004FCD RID: 20429 RVA: 0x000D9597 File Offset: 0x000D7797
		// (set) Token: 0x06004FCE RID: 20430 RVA: 0x000D959F File Offset: 0x000D779F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x06004FCF RID: 20431 RVA: 0x000D95A8 File Offset: 0x000D77A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetFriendChallengeDetailScRsp);
		}

		// Token: 0x06004FD0 RID: 20432 RVA: 0x000D95B8 File Offset: 0x000D77B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetFriendChallengeDetailScRsp other)
		{
			return other != null && (other == this || (this.gAIMPKMPKAL_.Equals(other.gAIMPKMPKAL_) && this.ChallengeId == other.ChallengeId && this.Retcode == other.Retcode && this.Uid == other.Uid && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004FD1 RID: 20433 RVA: 0x000D9628 File Offset: 0x000D7828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.gAIMPKMPKAL_.GetHashCode();
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004FD2 RID: 20434 RVA: 0x000D96A7 File Offset: 0x000D78A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004FD3 RID: 20435 RVA: 0x000D96AF File Offset: 0x000D78AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004FD4 RID: 20436 RVA: 0x000D96B8 File Offset: 0x000D78B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.ChallengeId);
			}
			this.gAIMPKMPKAL_.WriteTo(ref output, GetFriendChallengeDetailScRsp._repeated_gAIMPKMPKAL_codec);
			if (this.Uid != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Uid);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004FD5 RID: 20437 RVA: 0x000D9740 File Offset: 0x000D7940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.gAIMPKMPKAL_.CalculateSize(GetFriendChallengeDetailScRsp._repeated_gAIMPKMPKAL_codec);
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004FD6 RID: 20438 RVA: 0x000D97C4 File Offset: 0x000D79C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetFriendChallengeDetailScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.gAIMPKMPKAL_.Add(other.gAIMPKMPKAL_);
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004FD7 RID: 20439 RVA: 0x000D9839 File Offset: 0x000D7A39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004FD8 RID: 20440 RVA: 0x000D9844 File Offset: 0x000D7A44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 82U)
				{
					if (num == 32U)
					{
						this.ChallengeId = input.ReadUInt32();
						continue;
					}
					if (num == 82U)
					{
						this.gAIMPKMPKAL_.AddEntriesFrom(ref input, GetFriendChallengeDetailScRsp._repeated_gAIMPKMPKAL_codec);
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.Uid = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001F60 RID: 8032
		private static readonly MessageParser<GetFriendChallengeDetailScRsp> _parser = new MessageParser<GetFriendChallengeDetailScRsp>(() => new GetFriendChallengeDetailScRsp());

		// Token: 0x04001F61 RID: 8033
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001F62 RID: 8034
		public const int GAIMPKMPKALFieldNumber = 10;

		// Token: 0x04001F63 RID: 8035
		private static readonly FieldCodec<DisplayAvatarDetailInfo> _repeated_gAIMPKMPKAL_codec = FieldCodec.ForMessage<DisplayAvatarDetailInfo>(82U, DisplayAvatarDetailInfo.Parser);

		// Token: 0x04001F64 RID: 8036
		private readonly RepeatedField<DisplayAvatarDetailInfo> gAIMPKMPKAL_ = new RepeatedField<DisplayAvatarDetailInfo>();

		// Token: 0x04001F65 RID: 8037
		public const int ChallengeIdFieldNumber = 4;

		// Token: 0x04001F66 RID: 8038
		private uint challengeId_;

		// Token: 0x04001F67 RID: 8039
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04001F68 RID: 8040
		private uint retcode_;

		// Token: 0x04001F69 RID: 8041
		public const int UidFieldNumber = 14;

		// Token: 0x04001F6A RID: 8042
		private uint uid_;
	}
}
